<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>

	<title>GESTOR INCIDENCIAS</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/menu.css">
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
	
	<script src="js/menu.js"></script>
    <script src="js/cambioaula.js"></script>
	<script src="js/cambiarpc.js"></script>

<style type="text/css">
#pcs1,#pcs2{background:white;height:300px;width:200px;overflow:auto;}
</style>
</head>

<body>
<?php
require('php/cabecera.php');
?>

	<script>
			(function($){
				
				//cache nav
				var nav = $("#topNav");
				
				//add indicator and hovers to submenu parents
				nav.find("li").each(function() {
					if ($(this).find("ul").length > 0) {
						/*$("<span>").text("^").appendTo($(this).children(":first"));*/

						//show subnav on hover
						$(this).mouseenter(function() {
							$(this).find("ul").stop(true, true).slideDown();
						});
						
						//hide submenus on exit
						$(this).mouseleave(function() {
							$(this).find("ul").stop(true, true).slideUp();
						});
					}
				});
			})(jQuery);
			
			
			
			
		</script>
	
	<script>
	
	</script>
	
<div id="contenido">
<?php
require('php/menuvhasiera.php');
?>

		<div id="principal">
			<h2><?php echo $xtitucambio;?></h2>
			<form method="post" action="php/cambiarpc.php">
				<center>
                <table>
				<tr>
					<td>
						<?php
							require('php/conexionbd.php');
							$res=mysql_query("SELECT * FROM aulas", $con);
							echo " <select id='aula1' name='aula1' onchange='listapcs1()'>";
							echo "<option value='0'></option>";
							while($row = mysql_fetch_array($res)){
								$id_aula1=$row['id_aula'];
								$aula1=$row['num_aula'];
								echo "<option value='$id_aula1'>$aula1</option>";
							}
							echo "</select>";
						?>
					</td>
					<td></td>
					<td>
						<?php
							require('php/conexionbd.php');
							$res=mysql_query("SELECT * FROM aulas", $con);
							echo " <select id='aula2' name='aula2' onchange='listapcs2()'>";
							echo "<option value='0'></option>";
							while($row = mysql_fetch_array($res)){
								$id_aula2=$row['id_aula'];
								$aula2=$row['num_aula'];
								echo "<option value='$id_aula2'>$aula2</option>";
							}
							echo "</select>";
						?>
					</td>
				</tr>
				<tr>
					<td>
						<div id="pcs1" style="border: 1px solid #000000;">
						<?php
							/*$id_aula = 1;
							$res=mysql_query("SELECT * FROM tipo_dispositivo where tipo='ordenador'", $con);
							while($row = mysql_fetch_array($res)){
							$id_tipo=$row['id_tipo'];
							}


							$res=mysql_query("SELECT * FROM dispositivos where id_aula='$id_aula' AND id_tipo_dispositivo='$id_tipo'", $con);
							while($row = mysql_fetch_array($res)){
							
							echo '<input type="checkbox" name="casilla1[]" value="'.$row['id'].'">';
							echo $row['id'];
							echo $row['etiqueta']."<br />";
	
							}*/
	?>					</div>
					</td>
					<td>
					<input type="submit" name="boton" id="boton" value="-->" ><br />
					<input type="submit" name="boton" id="boton" value="<--" >
					</td>
					<td>
						<div id="pcs2" style="border: 1px solid #000000;"></div>
					</td>
				</tr>
				
				
				</table>
                </center>
			</form>
		</div>
	</div>
	
	<div id="pie">
		<?php 
		include("pie.php");
		?>
	</div>

</div>	
</body>
</html>
